Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 3 - Appendixes
Appendix A - The Language at a Glance


Predefined Variables

Table A-9 lists special variables that are defined by AppleScript. These variables are global, that is, they are available anywhere in a script.

As with all other identifiers, predefined variables are not case sensitive. For example, result, Result, and RESULT are all treated as the same variable.
Predefined variables
IdentifierClassDescription
itReferenceThe default target. For more information, see Chapter 7, "Control Statements."
meReferenceThe current script (used within Tell statements to refer to handlers or properties of the current script). For more information, see Chapter 7, "Control Statements," and Chapter 8, "Handlers."
piRealThe value π (roughly 3.14159).
resultAny classThe result returned by the most recently executed command or the most recently evaluated expression. If the most recently executed command did not return a result, then the value of result is undefined.
returnStringA return character.
spaceStringA space character.
tabStringA tab character.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996